package com.sifour;

import com.sifour.entity.Bird;
import com.sifour.entity.Eagle;
import com.sifour.entity.Penguin;
import com.sifour.entity.Pigeon;

public class Client {
    public static void main(String[] args) {
//        测试鸽子
        Bird pigeon = new Pigeon();
        pigeon.display();
        pigeon.fly();
        pigeon.swim();

//        测试老鹰
        Bird eagle = new Eagle();
        eagle.display();
        eagle.fly();
        eagle.swim();

//        测试企鹅
        Bird penguin = new Penguin();
        penguin.display();
        penguin.fly();
        penguin.swim();
    }
}
